package com.dao;

import com.entity.PostingLike;

/**
 * 帖子点赞
 *
 * @author lbb
 * @version 1.0
 * @date 2020.3.2
 */
public interface PostingLikeDao {
	/**
	 * 点赞
	 *
	 * @param postingLike 点赞信息
	 * @return Boolean
	 */
	Boolean addPostingLike(PostingLike postingLike);
	
	/**
	 * 获取点赞数量
	 *
	 * @param postingId 帖子ID
	 * @return Integer 点赞数量
	 */
	Integer getTotal(Integer postingId);
	
	/**
	 * 删除点赞
	 *
	 * @param postingLike 点赞信息
	 * @return Boolean
	 */
	Boolean delPostingLike(PostingLike postingLike);
	
	/**
	 * 根据帖子ID删除全部点赞
	 *
	 * @param postingId 帖子ID
	 * @return Boolean
	 */
	Boolean delAllPostingLike(Integer postingId);
}
